s=input()
if len(s)==1:
    print(s)
    print("Yes")
    exit()
flag=0
i=0
j=len(s)-1
while s[i]==s[j] and i<=j:
    i+=1
    j-=1
print(s)
if i>j:
    print("Yes")
else:
    print("No")